package org.sgsm.dungeon.generator;

public class Passeur
{
  private static Passeur _instance;
  private String _pathBase;

  private Passeur()
  {
    _pathBase = "";
  }

  public static Passeur getInstance()
  {
    if (_instance == null)
    {
      _instance = new Passeur();
    }
    return _instance;
  }

  public String packageToPath(String pPackage)
  {
    return getPathBase() + pPackage.replace(".", "\\");
  }

  public void setPathBase(String pathBase)
  {
    this._pathBase = pathBase;
  }

  public String getPathBase()
  {
    return _pathBase;
  }
}
